home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-04-10 | 2.4 KB | 101 lines |
- #
- # Makefile for Graphics Gems source
- #
- # Craig Kolb, 8/90
- #
- # This make file will build "gemslib.a" and a number of executables.
- # Gemslib is built solely for debugging purposes -- it is not intended
- # to be used as a library.
- #
- # Note that some of the gems need additional macros, functions, tables
- # driving routines, etc. before they will compile or run properly.
- # These include:
- #
- # AALines
- # Needs a number of macros defined.
- # Dissolve
- # Needs a table filled.
- # FitCurves
- # Needs a functioning DrawBezierCurve().
- # MatrixOrtho
- # Needs a number of matrix routines.
- # PolyScan
- # Needs driving routines and other additional code.
- # RayPolygon
- # Needs surrounding function structure, declaration of
- # variable types, etc.
-
- #
- # C compiler flags
- #
- CFLAGS = -g
- #
- # Location of Graphics Gems library
- #
- LIBFILE = gemslib.a
-
- #
- # Graphics Gems Vector Library
- #
- VECLIB = GGVecLib.o
-
- MFLAGS = "LIBFILE = ../$(LIBFILE)" "GENCFLAGS = $(CFLAGS)"
- SHELL = /bin/sh
-
- OFILES = PntOnLine.o ViewTrans.o AAPolyScan.o Albers.o \
- Interleave.o BoundSphere.o BoxSphere.o CircleRect.o \
- ConcaveScan.o Roots3And4.o Dissolve.o DigitalLine.o \
- FastJitter.o FixedTrig.o HSLtoRGB.o HypotApprox.o LineEdge.o \
- MatrixInvert.o MatrixPost.o Median.o PixelInteger.o \
- TriPoints.o Quaternions.o RGBTo4Bits.o RayBox.o \
- SeedFill.o SquareRoot.o DoubleLine.o TransBox.o
-
- DIRS = 2DClip PolyScan Sturm
-
- ALL = Hash3D FitCurves Forms NearestPoint Label \
- OrderDither BinRec $(LIBFILE)
-
- all: $(ALL)
- @for d in $(DIRS) ; do \
- (cd $$d ; $(MAKE) $(MFLAGS)) ;\
- done
-
- $(LIBFILE): $(OFILES) $(VECLIB)
- ar rcs $(LIBFILE) $(OFILES) $(VECLIB)
-
- Hash3D: Hash3D.o
- $(CC) $(CFLAGS) -o $@ Hash3D.o
-
- FitCurves: FitCurves.o $(VECLIB)
- $(CC) $(CFLAGS) -o $@ FitCurves.o $(VECLIB) -lm
-
- Forms: Forms.o
- $(CC) $(CFLAGS) -o $@ Forms.o
-
- NearestPoint: NearestPoint.o $(VECLIB)
- $(CC) $(CFLAGS) -o $@ NearestPoint.o $(VECLIB) -lm
-
- Label: Label.o
- $(CC) $(CFLAGS) -o $@ Label.o -lm
-
- OrderDither: OrderDither.o
- $(CC) $(CFLAGS) -o $@ OrderDither.o
-
- BinRec: BinRec.o
- $(CC) $(CFLAGS) -o $@ BinRec.o
-
- clean:
- @for d in $(DIRS) ; do \
- (cd $$d ; $(MAKE) $(MFLAGS) clean) ;\
- done
- /bin/rm -f $(OFILES) $(VECLIB)
- /bin/rm -f Hash3D.o FitCurves.o \
- Forms.o NearestPoint.o Label.o OrderDither.o BinRec.o \
- Hash3D FitCurves Forms NearestPoint Label OrderDither BinRec \
- bugs a.out core Part??
-
- kit:
- (makekit -iPACKING_LIST -oMANIFEST)
-
- $(ALL): GraphicsGems.h
-